<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>二手东_ThinkPHP5</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            text-decoration: none;
            list-style-type: none;
        }
        input{
            outline: none;
            border: none;
        }

        .AAAAAAAAA{
            height: 100%;
            background-color: pink;

        }

        html,body{
            height: 100%;
        }



    </style>
</head>
<body>




<div class="AAAAAAAAA">

    如何给div盒子相对于body,设置100%的高度

    <br>

    答案是:

    <br>

    html,body{
        height: 100%;
    }

</div>




</body>
</html>